Revert "arrow: Make minimum size 5px"
authorBenjamin Otte <otte@redhat.com>
Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)
This reverts commit 1c46e04f30e8b496ac0cc3ad830b4824e54c1e94.

The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.

gtk/gtkarrow.c

index 4da38722e4d867a548928c30dfb95dc1911c370e..9d46d69bf9bf05b0c8204792254c9a04c3b49403 100644 (file)
@@ -52,8 +52,7 @@
 #include "gtkprivate.h"
 #include "gtkintl.h"
 
-#define MINIMUM_ARROW_SIZE  5
-#define NATURAL_ARROW_SIZE  15
+#define MIN_ARROW_SIZE  15
 
 struct _GtkArrowPrivate
 {
@@ -209,10 +208,10 @@ gtk_arrow_get_preferred_width (GtkWidget *widget,
   gtk_misc_get_padding (GTK_MISC (widget), &xpad, NULL);
 
   if (minimum_size)
-    *minimum_size = MINIMUM_ARROW_SIZE + xpad * 2;
+    *minimum_size = MIN_ARROW_SIZE + xpad * 2;
 
   if (natural_size)
-    *natural_size = NATURAL_ARROW_SIZE + xpad * 2;
+    *natural_size = MIN_ARROW_SIZE + xpad * 2;
 }
 
 static void
@@ -225,10 +224,10 @@ gtk_arrow_get_preferred_height (GtkWidget *widget,
   gtk_misc_get_padding (GTK_MISC (widget), NULL, &ypad);
 
   if (minimum_size)
-    *minimum_size = MINIMUM_ARROW_SIZE + ypad * 2;
+    *minimum_size = MIN_ARROW_SIZE + ypad * 2;
 
   if (natural_size)
-    *natural_size = NATURAL_ARROW_SIZE + ypad * 2;
+    *natural_size = MIN_ARROW_SIZE + ypad * 2;
 }